<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>numberpicker</title>
    <link rel="stylesheet" href="../../model/element.css">
    <link rel="stylesheet" href="../../model/view.css">
</head>
<body>
<!--目录-->
<div class="catalog">
    <h2>目录</h2>
    <ul>
        <li>
            <p><a href="#element">< numberpicker  style3></a></p>
        </li>
        <li>
            <p><a href="#attribute">属性</a></p>
            <ul>
                <li><p><a href="#example">实例</a></p></li>
                <li><p><a href="#optional">可选属性</a></p></li>
                <li><p><a href="#note">提示和注释</a></p></li>
                <li><p><a href="#sketch">效果图</a></p></li>
            </ul>
        </li>
        <li>
            <p><a href="#jsFn">js函数</a></p>
            <ul>
                <li><p><a href="#jsFn_get">get</a></p></li>
            </ul>
        </li>
        <li>
            <p><a href="#childElement">子标签</a></p>
            <ul>
                <li><p><a href="#childElement_limg">limg</a></p></li>
                <li><p><a href="#childElement_rimg">rimg</a></p></li>
                <li><p><a href="#childElement_lp">lp</a></p></li>
                <li><p><a href="#childElement_rp">rp</a></p></li>
            </ul>
        </li>
    </ul>
</div>
<!--标签-->
<div id="element">
    <h2>numberpicker</h2>
    <div>简介:</div>
    <p>数字选择器</p>
</div>
<!--属性-->
<div id="attribute">
    <h2>属性</h2>
    <div style="margin-left: 25px" id="example">
        <h3>实例:</h3>
        <!--xmp标签可以直接书写xml格式文本-->
        <xmp>
            <numberpicker style="3" background="#ffffff" id="num" min="35" step="5" itemClick="(document,res)=>{console.log(res + '-----res--');}">
                <limg img="img.reduceb.png">img.reduce.png</limg>
                <rimg>img.calladd.png</rimg>
                <rp>分钟</rp>
            </numberpicker>
        </xmp>
    </div>
    <div id="optional">
        <h3>可选属性:</h3>
        <table >
            <tbody>
            <tr>
                <th>属性</th>
                <th>值</th>
                <th>描述</th>
            </tr>
            <tr>
                <td>min</td>
                <td>25</td>
                <td>最小值，起始值</td>
            </tr>
            <tr>
                <td>max</td>
                <td>100</td>
                <td>最大值</td>
            </tr>
            <tr>
                <td>itemclick</td>
                <td>script</td>
                <td>javascript 代码</td>
            </tr>
            <tr>
                <td>step</td>
                <td>5</td>
                <td>每次叠加或者递减的数目</td>
            </tr>
            <tr>
                <td>height</td>
                <td>50</td>
                <td>设置整个控件的高度</td>
            </tr>
            </tbody>
        </table>
    </div>
    <div id="note">
        <h3>提示和注释:</h3>
    </div>
    <div id="sketch">
        <h3>效果图:</h3>
        <img src="img/numberpicker3.png" alt="">
    </div>
</div>
<!--js方法-->
<div id="jsFn">
    <h2>js方法</h2>
    <div class="jsFnModel" id="jsFn_get">
        <h3>get</h3>
        <div class="shape">
            <h3>函数使用样式</h3>
            <p>get(lp/num)-> str</p>
        </div>
        <div class="profile">
            <h3>函数功能简介</h3>
            <p>lp:获取左边文本内容，num: 获取数据</p>
        </div>
        <div class="version">
            <p>稳定性;2 - 稳定的</p>
            <p>新增于:v0.0.0</p>
        </div>
        <div class="params">
            <h3>参数列表:</h3>
            <ul>
                <li>
                    <p>lp/num</p>
                    <p>&nbsp;string&nbsp;</p>
                    <p>左侧文本控件/中间数字控件</p>
                </li>
            </ul>
        </div>
        <div class="res">
            <h3>返回值:</h3>
            <p>sting</p>
            <p>获取左边文本内容/ 获取数据</p>
        </div>
        <div class="code">
            <h3>例子</h3>
            <pre>
            <code>
                document.$('id').get('lp');
            </code>
        </pre>
        </div>
        <div class="error">
            <h3>抛出错误</h3>
        </div>
    </div>
</div>
<!--子标签-->
<div id="childElement">
    <h2>子标签</h2>
    <div id="childElement_limg">
        <h3>limg</h3>
        <p>左边图片</p>
        <p>用法参考<a href="../img/index.html"> < img ></a> </p>
    </div>
    <div id="childElement_rimg">
        <h3>rimg</h3>
        <p>右边图片</p>
        <p>用法参考<a href="../img/index.html"> < img ></a> </p>

    </div>
    <div id="childElement_lp">
        <h3>lp</h3>
        <p>左边文本控件</p>
        <p>用法参考<a href="../p/index.html"> < p ></a> </p>

    </div>
    <div id="childElement_rp">
        <h3>rp</h3>
        <p>右边文本控件</p>
        <p>用法参考<a href="../p/index.html"> < p ></a> </p>

    </div>
</div>
</body>
</html>